package cn.caplike.demo.repository.java8;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;

/**
 * LocalDateTime 的使用
 *
 * @author LiKe
 * @version 1.0.0
 * @date 2020-04-21 16:46
 */
public class LocalDateTimeTest {

    public static void main(String[] args) {
        System.out.println(
                LocalDateTime.now()
                        .plus(3600 * 1000, ChronoUnit.MILLIS)
                        .format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))
        );

    }
}
